package com.dotstone.chipism.util;

import java.util.ArrayList;
import java.util.List;

import com.dotstone.chipism.bean.BrandSort;

/**
 * 恬家码库有时候会刷新不出空调品牌 故用此单例保存空调品牌
 * 
 * @author ise1
 * 
 */
public class BrandManager {
	private List<BrandSort> brandSorts = new ArrayList<BrandSort>();
	private boolean save = false;

	public boolean isSave() {
		return save;
	}

	public void setSave(boolean save) {
		this.save = save;
	}

	public List<BrandSort> getBrandSorts() {
		return brandSorts;
	}

	public void setBrandSorts(List<BrandSort> brandSorts) {
		this.brandSorts = brandSorts;
	}

	public static BrandManager mBrandManager = null;

	public static BrandManager getInstance() {
		if (mBrandManager == null) {
			mBrandManager = new BrandManager();// 单例对象实例
		}
		return mBrandManager;
	}

	private BrandManager() {

	}

	private Object readResolve() {
		return getInstance();
	}

	public void clearBrand() {
		brandSorts.clear();
	}
}
